package com.jxl.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * AI聊天记录表
 * </p>
 *
 * @author 金小梁
 * @since 2025-02-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ai_chat_records")
@ApiModel(value="AiChatRecords对象", description="AI聊天记录表")
public class AiChatRecords implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "聊天记录唯一标识")
    @TableId(value = "chat_id", type = IdType.AUTO)
    private Integer chatId;

    @ApiModelProperty(value = "用户ID（外键关联用户表）")
    private Integer userId;

    @ApiModelProperty(value = "用户消息内容")
    private String message;

    @ApiModelProperty(value = "AI回复内容")
    private String aiResponse;

    @ApiModelProperty(value = "消息发送时间")
    private LocalDateTime createdAt;


}
